import QtQuick 2.0
Item{
    property string plcHolder:""
    property string val:"5"
    x:0
    y:0
    width: 100
    height: 30
    Rectangle{
        color:"transparent"
        border.color: "#303030"
        border.width: 1
        anchors.fill:  parent
        TextInput {            
            id: text_field
            anchors.fill:  parent
            width: parent.width
            height: parent.height
            horizontalAlignment: TextInput.AlignHCenter
            font.family: "Verdana"
            font.pixelSize:  20
            onTextChanged:
            {
                val = text
            }
        }
    }
    function setText(_s)
    {
        text_field.text = _s
        val = _s
    }
}
